]> dgit.raspbian.org Git - gnome-shell.git/commit
workspacesView: Use side-by-side layout
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 29 Dec 2020 21:05:29 +0000 (18:05 -0300)
committerMarge Bot <marge-bot@gnome.org>
Wed, 3 Feb 2021 20:30:30 +0000 (20:30 +0000)
commit26c5434222a679c8a92d120137cde255818459a1
tree5888fc3534e7ac3384eeb1364be11d3c75a158e5
parent3abfc2585814c79642481d2f89c5f49454d50d54
workspacesView: Use side-by-side layout

Currently, WorkspacesView positions each workspace on a
per-page layout, each page with the allocated width and
height of WorkspaceView. This layout doesn't work well
with horizontal workspaces.

Layout workspaces side by side, instead of per page. The
layout is influenced by a "fit mode", which reflects the
different behaviors exposed in the mockup. This fit mode
represents whether a single or all workspaces will fit
available geometry.

The single fit mode is always used for now. Next commits
will make it switch to the all fit mode when in the app
grid state.

The translation_{x,y} also needed to reflect the switch to
a side-by-side layout, and use the geometry of the workspaces
to determine the offset. Notice that, when the fit mode is ALL,
there's no translation applied.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1613>
js/ui/workspacesView.js